From: Florian Müllner Date: Wed, 4 Mar 2020 01:35:21 +0000 (+0100) Subject: main: Activate notification proxy on start X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~139 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f2df347ddb76c5a4cd218d59bd4ea762d15227a8;p=gnome-shell.git main: Activate notification proxy on start At least for the time being, this looks like the easiest option to launch the service: - we could add a systemd unit, but then we'd need to update the RequiredComponents in the fallback session definition as well, making it necessary for gnome-shell, gnome-shell-extensions and gnome-session to be updated to 3.36.1 in lockstep - autostart is problematic as it would make gnome-shell conflict with other notification daemons; also autostart is most useful with automatic shutdown, which would require tracking signal subscriber to determine when the service is unused https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/547 --- diff --git a/js/ui/main.js b/js/ui/main.js index 6b180bd9b..3d921409f 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -142,6 +142,9 @@ function start() { shellDBusService = new ShellDBus.GnomeShell(); shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler(); + Gio.DBus.session.watch_name('org.gnome.Shell.Notifications', + Gio.BusNameWatcherFlags.AUTO_START, null, null); + _sessionUpdated(); }